//
//  NRWCarListsModel.m
//  New_Runway
//
//  Created by mack on 2018/1/24.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "NRWCarListsModel.h"




@implementation NRWCarListsModel

+ (NSDictionary *)objectClassInArray{
    return @{@"result" : @"Result"};
}

@end

@implementation Result

- (NSString *)carLicenceDateString {
    
    if (self.carLicenceState == 1 ) {
        return [[NRWCarTurnTime formatDateToString:self.carLicenceDate withFormat:@"yyyy"] stringByAppendingString:@"年"];
    }else if (self.carLicenceState == 2){
        return @"未上牌";
    }else if (self.carLicenceState == 3 ){
        return @"新车";
    }
    return @"";
}

- (NSString *)carMileageString {
    
    if (self.carMileage.doubleValue <= 0) {
        return @"未输入里程";
    } else if (self.carMileage.doubleValue < 0.1) {
        return [NSString stringWithFormat:@"%ld公里", (long)(self.carMileage.doubleValue * 10000)];
    } else {
        return [NSString stringWithFormat:@"%.2f万公里", self.carMileage.doubleValue];
    }
}

- (NSString *)carCreateTimeString {
    
    return [NRWCarTurnTime formatDateToString:_carCreateTime withFormat:@"yyyy.MM.dd"];
}

@end


@implementation Region

@end


@implementation Market

@end


@implementation Brand

@end


@implementation city

@end


@implementation Shop

@end


